package com.xique.api.controller;

import com.xique.api.bean.request.user.UserListRequest;
import com.xique.api.service.biz.service.IUserBizService;
import com.xique.common.core.web.controller.BaseController;
import com.xique.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author shd
 * @create 2022/2/25 15:01
 */
@RestController
@RequestMapping("/user")
public class UserController extends BaseController {

    @Autowired
    private IUserBizService userBizService;

    @PostMapping("/v1/list")
    public AjaxResult list(@RequestBody UserListRequest request) {
        return userBizService.getUserList(request);
    }

}
